// 登录请求参数
export interface LoginParams {
  user: string;
  pwd: string;
}

// 登录响应数据
export interface LoginResult {
  code: number;
  data: {
    userInfo: {
      id: number;
      user: string;
      role_id: string;
      user_name: string;
      role_name: string;
    };
    token: string;
  };
  message: string;
}



export interface NotUpload {
  code: 200;
  message: string;
  data: {
    uploaded: false;
  };
}

export interface Uploaded {
  code: 201;
  message: string;
  data: {
    uploaded: true;
  };
}

export interface UploadedNotSuccess {
  code: 202;
  message: string;
  data: {
    uploaded: true;
    existsChunks: string[];
  };
}

export type UploadResult = NotUpload | Uploaded | UploadedNotSuccess;
